﻿using System.Windows.Forms;

namespace SSAT.Utils.Freezer
{
    internal sealed class FreezedControl : FreezedItem
    {
        private readonly Control _control;

        public FreezedControl(Control control)
        {
            Verification.CheckArgumentForNull(control, "control");
            _control = control;
        }

        public override void Enable()
        {
            _control.Enabled = true;
        }

        public override void Disable()
        {
            _control.Enabled = false;
        }
    }
}
